def common_assert(test_case,expect_result,resp):
    json_data = resp.json()


    test_case.assertEqual(expect_result.get('status_code'), resp.status_code)
    test_case.assertEqual(expect_result.get('success'), json_data.get('success'))
    test_case.assertEqual(expect_result.get('code'), json_data.get('code'))
    test_case.assertIn(expect_result.get('message'), json_data.get('message'))